package com.ruoyi.vote.admin.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.vote.admin.domain.VoteActivity;
import com.ruoyi.vote.admin.domain.VoteSign;
import com.ruoyi.vote.admin.domain.vo.VoteActivityVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.vote.admin.domain.vo.VoteSignVo;
import com.ruoyi.vote.app.domain.request.VoteSignReq;
import org.apache.ibatis.annotations.Param;

/**
 * 投票 - 活动管理Mapper接口
 *
 * @author 筑巢
 * @date 2023-07-17
 */
public interface VoteActivityMapper extends BaseMapperPlus<VoteActivityMapper, VoteActivity, VoteActivityVo> {

    /**
     * 获取选手列表
     * @param page          分页参数
     * @param queryWrapper  查询条件
     * @return
     */
    Page<VoteActivityVo> selectPageVoList(@Param("page") Page<VoteActivity> page, @Param(Constants.WRAPPER) Wrapper<VoteActivity> queryWrapper);

    /**
     * 增加热度
     */
    void updateWelcomeOne(@Param("id") Long id);
}
